package com.cdelink.xzgy.ftp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import java.net.InetAddress;
import java.net.UnknownHostException;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class XzgyFtpApplication {

    public static void main(String[] args) {

        SpringApplication.run(XzgyFtpApplication.class, args);
        String hostAddress = null;
        try {
            InetAddress addr = InetAddress.getLocalHost();
            hostAddress = addr.getHostAddress();
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
        System.out.println("swagger文档地址：http://" + hostAddress + ":6003/swagger-ui.html");
    }

}
